How to update table based on another table values in SQL

visit shbcf.ru